package org.neuedu.chapter09_0701.practice09;


import java.util.Random;

public class Practice09 {
    public static void main(String[] args) {
        String[] arr = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"};
        Random r = new Random();
        String str = "";
        for (int i = 0; i < 10; i++) {
            int index = r.nextInt(arr.length);
            str += arr[index];
        }
        System.out.println("str = " + str);
    }
}
